home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 May
/
EnigmA AMIGA RUN 18 (1997)(G.R. Edizioni)(IT)[!][issue 1997-05][EAR-CD II].iso
/
earcd
/
util
/
dir
/
managers.lha
/
Managers
/
Cli_Master
/
func.g
< prev
next >
Wrap
Text File
|
1997-01-14
|
3KB
|
137 lines
G4C
winbig -1 -1 320 38 "CLI-Master"
wintype 11010000
winout nil:
xonopen
lvmulti climaster $cmst_srce first
gosub func.g getfile
update func.g 1 $cmst_fname
setgad func.g 1 on
if $cmst_mode = "rename"
update func.g 2 "Rename File(s)"
endif
if $cmst_mode = "clone"
update func.g 2 " Clone File(s)"
endif
if $cmst_mode = "moveas"
update func.g 2 "Move File(s) As"
endif
if $cmst_mode = "copyas"
update func.g 2 "Copy File(s) As"
endif
if $cmst_mode = "ednew"
update func.g 2 "Enter File Name"
endif
if $cmst_mode = "makedir"
update func.g 2 "Enter Dir Name"
endif
if $cmst_mode = "lha"
update func.g 2 "Enter Archive Name"
endif
failat 5
xonclose
delvar oldfile
delvar newfile
lvdir climaster $cmst_srce none
xonfail
ezreq "Error During Processing." Okay ""
lvdir climaster $cmst_srce none
guiclose func.g
box 0 0 0 0 in icondrop
text 100 4 280 12 "" 20 nobox
gadid 2
xtextin 20 16 280 13 "" cmst_nwname "" 30
gadid 1
if $cmst_nwname = ""
ezreq "You MUST supply a filename." "Sorry" ""
stop
endif
joinfile $cmst_pname $cmst_nwname newfile
gosub func.g $cmst_mode
xroutine makedir
joinfile $cmst_srcedir $cmst_nwname newfile
makedir $newfile
lvdir climaster $cmst_srce refresh
guiclose func.g
xroutine ednew
joinfile $cmst_srcedir $cmst_nwname newfile
cli '$DEF.EDITOR $newfile'
lvdir climaster $cmst_srce refresh
guiclose func.g
xroutine rename
rename $cmst_select $newfile
lvmulti climaster $cmst_srce off
extract newfile file ren_temp
extract ren_temp clean ren_temp
lvput climaster $cmst_srce -1 $ren_temp
lvmulti climaster $cmst_srce next
if $cmst_select = ""
lvdir climaster $cmst_srce refresh
guiclose func.g
endif
gosub func.g getfile
update func.g 1 $cmst_fname
setgad func.g 1 on
xroutine moveas
joinfile $cmst_destdir $cmst_nwname newfile
cli 'copy $oldfile $newfile quiet'
action delete $oldfile noreq
lvdir climaster $cmst_dest refresh
lvdel climaster $cmst_srce -1
lvmulti climaster $cmst_srce next
if $cmst_select = ""
guiclose func.g
endif
gosub func.g getfile
update func.g 1 $cmst_fname
setgad func.g 1 on
xroutine copyas
joinfile $cmst_destdir $cmst_nwname newfile
cli 'copy $oldfile $newfile quiet'
lvdir climaster $cmst_dest refresh
lvmulti climaster $cmst_srce off
lvmulti climaster $cmst_srce next
if $cmst_select = ""
guiclose func.g
endif
gosub func.g getfile
update func.g 1 $cmst_fname
setgad func.g 1 on
xroutine clone
cli 'copy $oldfile $newfile quiet'
lvmulti climaster $cmst_srce off
lvmulti climaster $cmst_srce next
if $cmst_select = ""
lvdir climaster $cmst_srce refresh
guiclose func.g
endif
gosub func.g getfile
update func.g 1 $cmst_fname
setgad func.g 1 on
xroutine getfile
extract cmst_select path cmst_pname
extract cmst_pname unquote cmst_pname
extract cmst_select file cmst_fname
extract cmst_fname unquote cmst_fname
joinfile $cmst_pname $cmst_fname oldfile
return